import React from "react";
import ReactDOM from "react-dom/client";
import "./index.css";
import App from "./App";
import "./i18n/configs";
import { Provider } from "react-redux";
import { PersistGate } from "redux-persist/integration/react";
import store from "./redux/store";
// import RootStore from "./redux/store";
import axios from "axios";
axios.defaults.headers["x-icode"] = "x"; // 16天后过期
const root = ReactDOM.createRoot(
  document.getElementById("root") as HTMLElement
);
root.render(
  <Provider store={store.store}>
    <PersistGate persistor={store.persistor}>
       <App />
    </PersistGate>
   
  </Provider>
);
